// pages/about_my/site/site.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
  
  },

  // 新增地址
  addNewSite: function () {
    var that = this
    var site_info = this.data.site_info

    wx.chooseAddress({
      success: function (res) {
        console.log(res)
        var site_info = res
        var detail_site = site_info.provinceName + site_info.cityName + site_info.countyName + site_info.detailInfo;
        console.log('详细地址:' + detail_site)
        site_info.detail_site = detail_site

        app.globalData.site_info = site_info
        that.setData({
          site_info: site_info
        })
      }
    })
  },

})